<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>暠雨</title>
    <link rel="stylesheet" href="__STATIC__/index/css/base.css">
    <link rel="stylesheet" href="__STATIC__/index/css/style.css">
</head>

<body>


<div class="header">
    <div class="head wrap">
        <div class="logo fl"><a href=""><img src="__STATIC__/index/images/logo.png"></a></div>
        <div class="head-right fr">
            <div class="head-a fr">
                {if condition='$user'}
                <div class="head-a1 fl"><a href=""><img src="__STATIC__/index/images/tb-a.png"></a></div>
                <div class="head-a1 fl"><a href=""><img src="__STATIC__/index/images/tb-b.png"></a></div>
                <div class="tbt fl"><img src="__UPLOAD__/user/{$user.image_thumb}" style="width: 30px;">
                    <div class="hgt-btm">
                        <a href="{:url('user/collection',['user_id'=>$user.user_id])}">我的主页</a>
                        <a href="">消息</a>
                        <a href="">我的关注</a>
                        <a href="{:url('user/account',['user_id'=>$user.user_id])}">帐号设置</a>
                        <a href="{:url('user/logon')}">退出</a>
                    </div>
                </div>

                {else}
                <div class="head-a1 fl"><a href=""><img src="__STATIC__/index/images/tb-a.png"></a></div>
                <div class="head-a1 fl"><a href=""><img src="__STATIC__/index/images/tb-b.png"></a></div>
                <div class="head-a3 fl"><a href="{:url('login/index')}">登录</a></div>
                <div class="head-a4 fl"><a href="{:url('login/login')}">注册</a></div>
                {/if}


            </div>
            <div class="clearfix"></div>
            <div class="nav fr">
                <ul>
                    <li class="nav-cut"><a href="{:url('index/index')}">首页</a></li>
                    <li><a href="{:url('question/article')}">文章</a>
                    </li>
                </ul>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>


<div class="content">
    <div class="idx-banner">
        <div class="fullSlide">
            <div class="box">
                <ul>
                    <li style="background:url(__STATIC__/index/upload/ban2.jpg) no-repeat center center;">
                        <a href="javascript:;"></a></li>
                    <li style="background:url(__STATIC__/index/upload/ban2.jpg) no-repeat center center;">
                        <a href="javascript:;"></a></li>
                    <li style="background:url(__STATIC__/index/upload/ban2.jpg) no-repeat center center;">
                        <a href="javascript:;"></a></li>
                </ul>
            </div>
            <div class="hbox">
                <ul></ul>
            </div>
        </div>
    </div>

    <div class="wrap">
        <div class="kg-box">
            <div class="kg-title">文章推荐</div>

            {foreach $questions as $item}
            <div class="kg" style="display: inline-block">
                <a href="{:url('question/question',['q_id'=>$item.q_id,'user_id'=>$user.user_id])}"><div class="kg-a fl">
                    <div class="kg-a1 fl"><img src="__UPLOAD__/question/{$item.image_thumb}"></div>
                    <div class="kg-a2 fl">
                        <div class="kg-a3">{$item.q_title}</div>
                        <div class="kg-a4">{$item.user_name}</div>
                        <div class="kg-a5">发表于 {$item.create_time|date="Y-m-d H:i:s",###}</div>
                        <div class="kg-a6">
                            <span><img src="__STATIC__/index/images/col-c1.jpg">0</span>
                            <span><img src="__STATIC__/index/images/col-c2.jpg">3</span>
                            <em><img src="__STATIC__/index/images/col-c3.jpg"></em>
                            <em><img src="__STATIC__/index/images/col-c4.jpg"></em>
                            <em><img src="__STATIC__/index/images/col-c5.jpg"></em>
                        </div>
                        <div class="kg-t"><img src="__STATIC__/index/images/kg-t.png"></div>
                    </div>
                </div></a>


            </div>
            {/foreach}

        </div>



        <div class="idx-btm"><a href=""><img src="__STATIC__/index/upload/act-f.jpg"></a></div>
    </div><!--wrap-->
</div>



<!--底部-->
<div class="footer">
    <div class="wrap">
        <div class="foot">
            <div class="foot-left fl">
                <a href="">关于我们</a>
                <a href="">加入我们</a>
                <a href="contact.html">联系我们</a>
                <a href="">媒体采访</a>
            </div>
            <div class="foot-c fl"><a href=""><img src="images/foot-logo.jpg"></a></div>
            <div class="foot-right fr">
                <a href="">同城活动</a>
                <a href="">课程资讯</a>
                <a href="">最新发布</a>
                <a href="">热门文章</a>
            </div>
        </div>

    </div>
</div>




<script src="__STATIC__/index/js/jquery-1.11.1.min.js"></script>
<script src="__STATIC__/index/js/jquery.SuperSlide.2.1.1.js"></script>
<script src="__STATIC__/index/js/Action.js"></script>

<script type="text/javascript">
    $(function(){
        var nav=$(".header"); //得到导航对象
        var win=$(window); //得到窗口对象
        var sc=$(document);//得到document文档对象。
        win.scroll(function(){
            if(sc.scrollTop()>=580){
                nav.addClass("head-cut");
                $(".head-cut").fadeIn(500);
            }else{
                nav.removeClass("head-cut");
                $(".head-cut").fadeOut(500);
            }
        })
    })
</script>
<script type="text/javascript">
    $(function ($) {
        $(".fullSlide").slide({
            titCell: ".hbox ul",
            mainCell: ".box ul",
            effect: "fold",
            mouseOverStop:false,
            autoPlay: true,
            autoPage: true,
            trigger: "click",
            startFun: function (i) {
                var curLi = jQuery(".fullSlide .bd li").eq(i);
                if (!!curLi.attr("_src")) {
                    curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
                }
            }
        });

    });

</script>
</body>
</html>
